import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import http from './axios/axiosConfig'
import { Swipe, SwipeItem } from 'vant';
import { Field, CellGroup } from 'vant';
import { Button } from 'vant';
import { Toast } from 'vant';
import { Grid, GridItem } from 'vant';
import { Image as VanImage } from 'vant';
import { Tabbar, TabbarItem } from 'vant';
import { Badge } from 'vant';
import { Stepper } from 'vant';
import { Empty } from 'vant';

//引入全部的样式，因为用了按需引入，所以不用再引入css文件了
// import 'vant/lib/index.css';
const app=createApp(App)
app.use(VanImage);
app.use(Swipe);
app.use(SwipeItem);
app.use(Field);
app.use(CellGroup);
app.use(Button);
app.use(Grid);
app.use(GridItem);
app.use(Toast);
app.use(Tabbar);
app.use(TabbarItem);
app.use(Badge);
app.use(Stepper);
app.use(Empty);
app.config.globalProperties.$http=http

app.use(store).use(router).mount('#app')


